import { useEffect, useState } from "react";

function PasswordDemo() {
	const [pass, setPass] = useState("20020421");
	
	return (
		<div>
			<input
				type='password'
				defaultValue={pass}
				onChange={(e) => setPass(e.target.value)}
			/>
			<button>显示</button>
		</div>
	);
}
export default PasswordDemo;
